package com.hailiao.beidou.message.data.db

import androidx.room.Database
import androidx.room.RoomDatabase
import com.hailiao.beidou.message.data.db.dao.ChatDao
import com.hailiao.beidou.message.data.db.dao.ContactDao
import com.hailiao.beidou.message.data.db.dao.MessageDao
import com.hailiao.beidou.message.data.db.entity.ChatEntity
import com.hailiao.beidou.message.data.db.entity.ContactEntity
import com.hailiao.beidou.message.data.db.entity.MessageEntity

/**
 * 数据库
 * @Author d10ng
 * @Date 2023/11/15 16:53
 */
@Database(
    entities = [
        ContactEntity::class,
        ChatEntity::class,
        MessageEntity::class
    ],
    version = 2,
    exportSchema = false
)
abstract class ADB: RoomDatabase() {

    abstract fun contactDao(): ContactDao
    abstract fun chatDao(): ChatDao
    abstract fun messageDao(): MessageDao
}
